package face.pay.system.config;

import face.pay.server.IServerAddressServer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: zkj
 * @Date: 2019/8/26 12:43
 * @Description:
 */
@Component
public class ServerAddress extends IServerAddressServer {

    /**
     * 开放接口
      */
    @Value("${openApi.server}")
    private   String openApi;

    public String getOpenApi() {
        return openApi;
    }

    public void setOpenApi(String openApi) {
        this.openApi = openApi;
    }

    public String getFileUploadUrl(){
        return  this.openApi+ fileLoadUrl;
    }

    public String getInfoApplyUrl(){
        return  this.openApi+ mchApplyUrl;
    }

    public String getApplyStatusUrl(){
        return  this.openApi+ mchApplyStatusUrl;
    }

    @Override
    public String getMchApplyUpgradeUrl() {
        return this.openApi+mchApplyUpgradeUrl;
    }

}
